
#include <BSemaphore>
#include "member_BSemaphore.h"

using namespace BWE;

#define member					(*(member_BSemaphore*)_ptr)
#define member_allocate()		_ptr = new member_BSemaphore(this)
#define member_release()		delete (member_BSemaphore*)_ptr

BSemaphore::BSemaphore(int n)
{
	member_allocate();
}
BSemaphore::~BSemaphore()
{
	member_release();
}

int BSemaphore::available() const
{
	return false;
}

void BSemaphore::acquire(int n)
{

}
void BSemaphore::release(int n)
{

}

bool BSemaphore::tryAcquire(int n)
{
	return false;
}
bool BSemaphore::tryAcquire(int n, int timeout)
{
	return false;
}
